package com.example.weathertemplate.service;

import com.example.commonsinterface.dto.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "RADIS-CACHE")
public interface RedisCache {
//    @RequestMapping("/cache")
//    public void cacheWeatherData();

    @GetMapping("/searchWeather")
    public WeatherResponse searchWeather(@RequestParam("cityid")  String cityid);
}
